@font-face {
    font-family: 'FontAwesome';
    src: url('../../Font-Awesome-3.2.1/font/fontawesome-webfont.eot?v=3.2.1');
    src: url('../../Font-Awesome-3.2.1/font/fontawesome-webfont.eot?#iefix&v=3.2.1') format('embedded-opentype'), url('../../Font-Awesome-3.2.1/font/fontawesome-webfont.woff?v=3.2.1') format('woff'), url('../../Font-Awesome-3.2.1/font/fontawesome-webfont.ttf?v=3.2.1') format('truetype'), url('../../Font-Awesome-3.2.1/font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1') format('svg');
    font-weight: normal;
    font-style: normal;
}

.list-unstyled {
    list-style: none;
}

body {
    background-color: @body-background-color;
}

a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline:none;
}

#PageLoadingEffect{
    position:absolute;
    width:100%;
    height:100%;
    z-index:99999;
    background: #b3b3b3;
}
#PageLoadingEffect .logo{
    width: 100%;
    height: 100%;
    background: url('../../assets/images/logo.jpg') no-repeat center;
}

.weui_cell:before {
    left: 0;
}

.picker-calendar-day.picker-calendar-day-selected span {
    background: @primary-color;
    color: #fff;
}

.toolbar .picker-button {
    position: absolute;
    right: 0;
    box-sizing: border-box;
    height: 2.2rem;
    line-height: 2.2rem;
    color: @primary-color;
    z-index: 1;
    padding: 0 .5rem;
}

.nodata {
    text-align: center;
    padding: 10px;
    font-size: 18px;
    color: #ffa931;
}

//font-awesome和jquery-css冲突问题
i.icon {
    display: inline-block;
}
#bt-control{
    display:none;
}
//媒体查询
@media screen and (max-width: 640px) {
    body {
        width: 100%;
    }
    .search-bar-fixed{
        width:100%;
    }
}

@media screen and (min-width: 640px) and (max-width: 768px) {
    body {
        width: 640px;
        margin: 0 auto;
    }
    //搜索
    .search-bar-fixed {
        width: 640px;
        margin: 0 auto;
    }
    .header {
        width: 640px;
        margin: 0 auto;
    }
    .footer {
        width: 640px;
        margin: 0 auto;
    }

    #posPop {
        width: 640px;
        margin: 0 auto;
    }

    .bottom-wrap {
        width: 610px;
        margin: 0 auto;
    }
    //弹出框
    .weui-popup-container{
        width: 640px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 768px) {
    body {
        width: 640px;
        margin: 0 auto;
    }

    .header {
        width: 640px;
        margin: 0 auto;
    }
    //搜索
    .search-bar-fixed {
        width: 640px;
        margin: 0 auto;
    }
    .footer, .travel-route {
        width: 640px;
        margin: 0 auto;
    }
    .index-bg{
        width: 640px;
        margin: 0 auto;
    }
    #posPop {
        width: 640px;
        margin: 0 auto;
    }

    .bottom-wrap {
        width: 610px;
        margin: 0 auto;
    }
    .weui-popup-container{
        width: 640px;
        margin: 0 auto;
    }
    #bt-control{
        display:inline-block;
    }
}

//通用整体布局
.wrap {
    .header, .footer {
        display: none;
    }
    &.hasHeader {
        padding-top: @header-height;
        .header {
            display: block;
            .position(0, 0, false, 0, fixed);
            background-color: @header-background-color;
            z-index: 399;
            border-bottom: 1px solid #cccccc;
        }
    }
    &.hasFooter {
        margin-bottom: 90px;
        .footer {
            display: block;
            .position(false, 0, 0, 0, fixed);
            height: 48px;
            border-top: @footer-border;
            background-color: @footer-background-color;
            z-index: 399;
            overflow: hidden;
        }
    }
}

//头部
.header {
    padding: 8px 12px;
    .title-bar {
        display: block;
        .lt-icons{
            padding: 0;
            background: transparent;
            display: inline-block;
            background-image: url("../../assets/images/main.png");
            background-repeat: no-repeat;
            background-size: 50px auto;
            width: 25px;
            height: 25px;
        }
        .goback{
            .lt-icons{
                position: relative;
                top: 2px;
                background-position-x: -30px;
                background-position-y: -700px;
            }
        }
        .h-share{
            .lt-icons{
                background-position-x: -22px;
                background-position-y: -726px;
                position: relative;
                top: 4px;
            }
        }
        .white-goback{
            .lt-icons{
                position: relative;
                top:2px;
                background-position-x: -0px;
                background-position-y: -700px;
            }
        }
        .white-share{
            .lt-icons{
                background-position-x: 0px;
                background-position-y: -726px;
                position: relative;
                top: 4px;
            }
        }
    }
    .page-title {
        margin: 0 80px;
        text-align: center;
        color: #0d0d0d;
        font-size: 17px;
        font-weight:600;
        position:relative;
        top:2px;
    }
    .left-btns {
        float: left;
        font-size: 14px;
        color:#0175ec;
        height:27px;
        line-height:27px;
        //margin-left:4px;
        .weui_input {
            //text-align: center;
            width:43px;

            font-weight: 600;
            .noBreak();
        }
        .goback{
            color: @primary-color;
        }
    }
    .right-btns {
        font-weight: 600;
        float: right;
    }

    .search-icon {
        background-image: url(../../assets/images/main.png);
        background-repeat: no-repeat;
        -webkit-background-size: 50px auto;
        background-size: 50px auto;
        background-position-y: -176px;
        height: 25px;
        width: 25px;
        display: block;
    }
    .city-box{
        color:  @primary-color;
        .weui_input {
            font-weight: 600;
            text-align: center;
            width: 50px;
            .noBreak();
        }
    }
    .black-font{
        color: #333;
    }

}

//footer  底部
.footer {
    //padding: 8px 0;
    .footer-btns {
        .main-muen {
            margin-bottom: 0;
            display: -moz-box;
            display: -webkit-box;
            display: flex;
            .active {
                color: #237eec;
            }
            .main-muen-item {
                float: left;
                text-align: center;
                -moz-box-flex: 1.0; /* Firefox */
                -webkit-box-flex: 1.0; /* Safari 和 Chrome */
                flex: 1.0;
                a {
                    display: block;
                    position: relative;
                    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
                    .home-icon {
                        background-image: url("../../assets/images/autoGuide_icons.png");
                        background-repeat: no-repeat;
                        background-size: 50px auto;
                        width: 25px;
                        height: 25px;
                        position: relative;
                        top: 6px;
                        .center-block();
                    }
                    .icon-text {
                        color:#808080;
                        font-size: 10px;
                    }
                    &.online-guide {
                        .home-icon {
                            background-position-y: 0px;
                            background-position-x: 1px;
                        }
                        &.active .home-icon {
                            background-position-y: 0px;
                            background-position-x: -23px;
                        }
                        &.active .icon-text {
                            color: @primary-color;
                        }
                    }
                    &.scenery-recommend {
                        .home-icon {
                            background-position-y: -30px;
                            background-position-x: 0px;
                        }
                        &.active .home-icon {
                            background-position-y: -30px;
                            background-position-x: -25px;
                        }
                        &.active .icon-text {
                            color: @active-color;
                        }
                    }
                    &.travel-strategy {
                        .home-icon {
                            background-position-y: -60px;
                            background-position-x: 0px;
                        }
                        &.active .home-icon {
                            background-position-y: -60px;
                            background-position-x: -24px;
                        }
                        &.active .icon-text {
                            color: @active-color;
                        }
                    }
                    &.my-info {
                        .home-icon {
                            background-position-y: -90px;
                            background-position-x: 1px;
                        }
                        &.active .home-icon {
                            background-position-y: -90px;
                            background-position-x: -25px;
                        }
                        &.active .icon-text {
                            color: @active-color;
                        }
                    }
                }
            }
        }
    }
}

//列表样式
.list-group {
    .list-item {
        display: flex;
        //display: block;
        overflow: hidden;
        padding: 10px;
        border-bottom: 1px solid #eee;
        .lt {
            flex: 1;
            max-width: 140px;
            height: 85px;
            margin-right: 10px;
            img {
                width: 100%;
                height: 100%;
            }
        }
        .rt {
            flex: 1;
            overflow: hidden;
            .p-title {
                span {
                    display: inline-block;
                    width: 70%;
                    color: #333;
                    font-size: 18px;
                    .noBreak();
                }
                .thumbs-up {
                    float: right;
                    font-size: 14px;
                    span {
                        float: left;
                        margin-right: 5px;
                        background-image: url(../../assets/images/autoGuide_icons.png);
                        background-repeat: no-repeat;
                        -webkit-background-size: 50px auto;
                        background-size: 50px auto;
                        width: 22px;
                        height: 20px;
                        display: block;
                        background-position-y: -150px;
                        background-position-x: 3px;
                    }
                }
                .icon-thumbs-up:before {
                    color: #ffa931;
                    font-size: 20px;
                    margin-right: 10px;
                }
            }
            .tips {
                color: #808080;
                font-size: 12px;
                .noBreak();
            }
            .limit-tips {
                color: #808080;
                font-size: 12px;
                overflow: hidden;
                text-overflow: ellipsis;
                max-height: 55px;
            }
            .p-date {
                color: #808080;
                font-size: 15px;
                margin-bottom: 5px;
            }
            .lg-tips {
                color: #333;
                font-size: 16px;
                .noBreak();
            }
        }
    }
}
//向下按钮
//.go-down{
//    display: block;
//    position: absolute;
//    bottom:200px;
//    right: 0;
//    width: 50px;
//    height: 50px;
//    z-index: 100;
//    span {
//        display: inline-block;
//        background-image: url(../../assets/images/little-icons.png);
//        background-repeat: no-repeat;
//        -webkit-background-size: 50px auto;
//        background-size: 50px auto;
//        width: 50px;
//        height: 50px;
//        background-position-x: 0px;
//        background-position-y: -270px;
//    }
//}

//写游记按钮
.travelNote-item-fixed{
    width:51px;
    height:50px;
    position:absolute;
    bottom:58px;
    right:12px;
    z-index:100;
    background-image:url(../../assets/images/little-icons.png);
    background-repeat: no-repeat;
    //background-size:60px;
    background-position:-66px -30px;
    background-color:#0175ec;
    border-radius:50%;
    font-size:12px;
    color:#fff;
    p{
        margin-top:26px;
        margin-left:8px;
    }
}


.wrap.hasHeader .gradient-bg{
    background: transparent;
    background: -webkit-linear-gradient(top, rgba(89,89,89,1), rgba(89,89,89,0.5),rgba(89,89,89,0)); /* Safari 5.1 - 6.0 */
    background: -webkit-linear-gradient(top, rgba(89,89,89,1), rgba(89,89,89,0.5),rgba(89,89,89,0)); /* Safari 5.1 - 6.0 */
    background: -o-linear-gradient(top, rgba(89,89,89,1), rgba(89,89,89,0.5),rgba(89,89,89,0)); /* Safari 5.1 - 6.0 */
    background:-moz-linear-gradient(top, rgba(89,89,89,1), rgba(89,89,89,0.5),rgba(89,89,89,0)); /* Safari 5.1 - 6.0 */
    background:linear-gradient(top, rgba(89,89,89,1), rgba(89,89,89,0.5),rgba(89,89,89,0)); /* Safari 5.1 - 6.0 */
    border:0 none !important;
}
//搜索样式
.search-bar-fixed{
    position: fixed;
    z-index: 30;
}

.weui_search_text span{
    width:100%;
}
//顶部搜索
.weui_search_inner{
    .weui_search_input{
        &:-ms-input-placeholder,
        textarea:-ms-input-placeholder {
            color: #333;
        }

        &::-webkit-input-placeholder,
        textarea::-webkit-input-placeholder {
            color: #333;
        }
    }
}
.weui_search_outer{
    &:after{
        background: #eee;
        border-radius:26px;
    }
}
//弹框
.weui_dialog{
    left:18.5%;
    top:36%;
    width:240px;
    height:160px;
    background:rgba(255,255,255,.96);
    border-radius:13px;
    .weui_dialog_title{
        color:#0175ec;
        font-size:17px;
    }
}

//弹框水平垂直居中
.weui_dialog.weui_dialog_visible{
    left:50%;
    top:50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.weui_dialog_hd{
    padding:5px 10px;
}
.weui_dialog_bd{
    height:70px;
    padding:0 12px;
    padding-top:2px;
    padding-bottom:2px;
    color: #000;
    font-size:12px;
}
.weui_btn_dialog.primary{
    color:#0175ec;
    font-size:15px;
}
.weui_btn_dialog.default{
    color:#0175ec;
    font-size:15px;
}
.weui_dialog_ft{
    bottom:-7px;
    margin-top:0;
    a{
        outline:none;
    }
}
.weui_mask{
    background:rgba(51,51,51,.4);
}


//layer登录弹框样式
.loginLayer {
    #saveInfoForm{
        margin-top:49px;
    }
    .form-list {
        margin-top: 46%;
        .weui_cells_p {
            background-color: #fff;
            width: 100%;
            border: none;
            color: #b2b2b2;
            font-size: 12px;
            .label-p {
                color: #333;
                font-size: 14px;
            }
            input {
                text-align: right;
            }
            input::-ms-input-placeholder {
                text-align: right;
            }
            //placeholder靠右
            input::-webkit-input-placeholder {
                text-align: right;
            }
        }
        .weui_cells_p.form-select {
            border-radius: 0;
            overflow-x: hidden;
            .cell_select {
                height: 44px;
                overflow-x: hidden;
                //width:94%;
                padding: 0 12px 0 6px;
                margin-left: 6px;
                margin-right: 0;
                text-align: right;

            }
        }
    }
}



.loginLayer {
    width:100%;
    height:auto;
    //height:288px;
    background-image:url(../images/bg3.jpg);
    background: #eee;
    .form-list{//账号 密码框样式
        margin-top:90px;
        .weui_cells{
            color:#999;
            background-color:#D1D4D9;
            width: 90%;
            margin: 0 auto;
            border: 1px solid #ddd;
            border-radius: 7px;
            .weui_cell{
                margin-left:10px;
                margin-right:10px;
                height:25px;
            }
            //输入框边框
            .weui_cell:before{
                border-color:#999;
            }
        }
    }
    .blur {
        position:absolute;
        top:0;
        left:0;
        border-bottom:0;
        right:0;
        width:100%;
        height:100%;
        img{
            width:100%;
            height:105%;
        }
    }
    &.loginContent {
        .modify-pic{
            display: block;
            margin: 10px auto;
            text-align: center;
            img{
                width: 50px;
                height: 50px;
                -webkit-border-radius:50%;
                -moz-border-radius:50%;
                border-radius:50%;
            }
            .tips{
                font-size: 12px;
                width: 60px;
                background: #aaa;
                color: #fff;
                text-align: center;
                padding: 3px;
                margin: 0 auto;
                border-radius: 8px;
            }
        }
        .form-list {
            .link-pwd {
                width:90%;
                text-align:right;
                margin:0 auto;
                .link-psw {
                    margin-top: 10px;
                    margin-left: 10px;
                    font-size: 12px;
                    color: #fff;
                    text-decoration: none;
                    position: relative;
                }
            }
            .weui_label {
                width: auto;
                margin-right: 10px;
            }
            .weui_input {
                color: #999;
            }
            //注册
            .validate-code {
                font-size:14px;
                position: absolute;
                right: -8px;
                top: 4px;
                color:#0175EC;
                padding: 10px;

            }
        }
        .form-list {
            .link-agree {
                width:90%;
                margin:0 auto;
                position: relative;
                color:#fff;
                padding-left:25px;
                font-size:12px;
                margin-top:5px;
                a{
                    color:#0175EC;
                }
            }
        }
        .form-action {
            padding: 20px;
            margin-top: 17px;
            .weui_btn {
                background: #0175EC;
                border-radius:7px;
                height:40px;
            }
            .active-btn{
                background:@primary-color;
            }
            .border-btn {
                background:#F19504;
                color:#fff;
                border-radius:7px;
            }
        }
    }
}

